import Layout from '@/views/layout/Layout'

const questionRouter = {
  path: '/question',
  component: Layout,
  redirect: '/question/list',
  name: 'Question',
  meta: {
    title: '题库管理',
    icon: 'table'
  },
  children: [
    {
      path: 'list',
      name: 'QuestionList',
      component: () => import('@/views/edu/question/list'),
      meta: { title: '题目列表', icon: 'list' }
    },
    {
      path: 'create',
      name: 'CreateQuestion',
      component: () => import('@/views/edu/question/form'),
      meta: { title: '题目录入', icon: 'edit' }
    },
    {
      path: 'edit/:id',
      name: 'EidtQuestion',
      component: () => import('@/views/edu/question/form'),
      meta: { title: '编辑题目', noCache: true },
      hidden: true
    }
  ]
}

export default questionRouter